package com.wb.creational.builder2.practice;

/**
 * @author 魏彪
 */
public class CourseBuilder {

    private Course course = new Course();

    public CourseBuilder addName(String name) {
        course.setName(name);
        return this;
    }

    public CourseBuilder addVideo(String video) {
        course.setVideo(video);
        return this;
    }

    public Course builder() {
        return course;
    }
}
